package org.longgang.service.impl;

import java.util.List;

import org.longgang.bean.Company;
import org.longgang.dao.CompanyDAO;
import org.longgang.service.CompanyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("CompanyService")
public class CompanyServiceImpl implements CompanyService {

	@Autowired
	private CompanyDAO dao;
	
	@Override
	public List<Company> getCompanyAll(Integer page,Integer pages) {
		// TODO Auto-generated method stub
		return dao.getCompanyAll(page,pages);
	}

	@Override
	public Integer insertCompany(Company info) {
		// TODO Auto-generated method stub
		return dao.insertCompany(info);
	}

	@Override
	public Integer selectCompanyByEmail(Company info) {
		// TODO Auto-generated method stub
		return dao.selectCompanyByEmail(info);
	}

	@Override
	public Integer selectCompanyByName(Company info) {
		// TODO Auto-generated method stub
		return dao.selectCompanyByName(info);
	}

	@Override
	public Integer selectCompany(Company info) {
		// TODO Auto-generated method stub
		return dao.selectCompany(info);
	}

	@Override
	public Company selectCompanyById(Company info) {
		// TODO Auto-generated method stub
		return dao.selectCompanyById(info);
	}

}
